home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10854 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: dispatch.news.demon.net!demon!redifon.demon.co.uk
  2. From: Guy Pickering <gp@redifon.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: casting 'char **' to 'const char**'
  5. Date: Wed, 20 Mar 1996 13:53:06 GMT
  6. Organization: Redifon MEL Ltd
  7. Message-ID: <827329986.5426@redifon.demon.co.uk>
  8. NNTP-Posting-Host: redifon.demon.co.uk
  9. X-NNTP-Posting-Host: redifon.demon.co.uk
  10. X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3_U1 sun4c)
  11. MIME-Version: 1.0
  12. X-URL: news:comp.lang.c
  13. Content-Transfer-Encoding: 7bit
  14. Content-Type: text/plain; charset=us-ascii
  15.  
  16. While my compiler is happy with me passing a 'char*' to a function
  17. requiring a 'const char*', it is not happy about passing a 'char**'
  18. to a function expecting a 'const char**'. I cannot seem to find any
  19. refs to this in K&R. What is the correct behaviour?
  20.  
  21. Many thanks,
  22.  
  23. Guy
  24.  
  25. -- 
  26. Name: Guy Pickering B.Eng A.M.I.E.E
  27. Position: Software Engineer
  28. Company: Redifon MEL Ltd, Newton Rd, Crawley, 
  29.          West Sussex, RH10 2TU. ENGLAND
  30. Tel:  +44 (0)1293 518855   Fax: +44 (0)1293 530101
  31. Mobile: +44 (0)973 129362 (Orange)
  32.  
  33.